<%@ page errorPage="/forward/error/page_error.jsp" %>
<%@ taglib uri="/WEB-INF/eam-tag.tld" prefix="eam" %>

<eam:PageLanguage />

<html>
<head>
<title><eam:message key="text.login.login"/></title>
</head>
<link rel="stylesheet" href="<%=CONTEXTPATH%>/css/default.css" type="text/css">
<script src="<%=CONTEXTPATH%>/utility/class/sysobjext.js"></script>
<script src="<%=CONTEXTPATH%>/utility/class/jserror.js"></script>
<body onload="javascript:document.all('input_pwd').focus()">

<table width=252>
	<tr><td height=20>&nbsp;</td></tr>
	<tr>
		<td align="right"><eam:message key="text.login.user"/>*:<td>
		<td width=100><input type="text" name="input_user" value="<%=(String)userInfo.get("user_code")%>" disabled><td>
	</tr>
	<tr>
		<td align="right"><eam:message key="text.login.pass"/>*:<td>
		<td width=100><input type="password" name="input_pwd" onkeyup="f_enter()"><td>
	</tr>
	<tr>
		<td colspan=3 align="right">
			<input type="button" value="<eam:message key="common.text.confrim"/>" onclick="f_login()">
			<input type="button" value="<eam:message key="event.button.close"/>" onclick="f_close()">
		</td>
	</tr>
</table>

</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
	function f_close(){
		window.returnValue = null;
		window.close();
    }
	
	function f_enter(){
		if("13" == event.keyCode){
			f_login();
		}
	}
	function f_login(){
		var user = document.all("input_user").value;
		user = user.trim();
		var pwd = document.all("input_pwd").value;
		pwd = pwd.trim();
		if(("" == user) || ("" == pwd)){
			document.all("input_user").focus();
			alert(gc_error.getErrorText("mustEdit"));
		}else{
			window.returnValue = user + ";" + pwd;
			window.close();
		}
	}
//-->
</SCRIPT>
